package com.xiyou.luckdraw.api.dal.entitys;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * 后台用户信息
 *
 * @author Jiangshijian
 * @date 2019-01-14
 */
@Entity
@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "sys_user")
public class SysUser {
    /**
     * 用户ID
     * 映射字段 : id
     */
    @Column(name = "id")
    private Long id;

    /**
     * 登录账号
     * 映射字段 : user_name
     */
    @Column(name = "user_name")
    private String userName;

    /**
     * 手机号码
     * 映射字段 : phone
     */
    @Column(name = "phone")
    private String phone;

    /**
     * 登陆密码
     * 映射字段 : password
     */
    @Column(name = "password")
    private String password;

    /**
     * 昵称
     * 映射字段 : nick_name
     */
    @Column(name = "nick_name")
    private String nickName;

    /**
     * 本地头像地址
     * 映射字段 : local_photo
     */
    @Column(name = "local_photo")
    private String localPhoto;

    /**
     * 性别 2女 1男
     * 映射字段 : gender
     */
    @Column(name = "gender")
    private Integer gender;

    /**
     * 电子邮件地址
     * 映射字段 : email
     */
    @Column(name = "email")
    private String email;

    /**
     * 允许删除,0:否；1:是
     * 映射字段 : delete_allowed
     */
    @Column(name = "delete_allowed")
    private Integer deleteAllowed;

    /**
     * 启用状态,0:无效；1:有效
     * 映射字段 : enabled
     */
    @Column(name = "enabled")
    private Integer enabled;
    /**
     * 用户状态,0:无效；1:有效
     * 映射字段 : status
     */
    @Column(name = "status")
    private Integer status;

    /**
     * 创建人id
     * 映射字段 : creator_id
     */
    @Column(name = "creator_id")
    private Long creatorId;

    /**
     * 创建人
     * 映射字段 : creator_name
     */
    @Column(name = "creator_name")
    private String creatorName;

    /**
     * 创建时间
     * 映射字段 : create_time
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 更新人id
     * 映射字段 : updator_id
     */
    @Column(name = "updator_id")
    private Long updatorId;

    /**
     * 更新人
     * 映射字段 : updator_name
     */
    @Column(name = "updator_name")
    private String updatorName;

    /**
     * 更新时间
     * 映射字段 : update_time
     */
    @Column(name = "update_time")
    private Date updateTime;
}
